<template>
  <svg class="svg-icon icon" aria-hidden="true" :style="{width: `${size}px`, height: `${size}px`}">
    <use :xlink:href="`#${href}`"></use>
  </svg>
</template>

<script>
export default {
  name: 'index',

  props: {
    href: {
      type: String,
      default: () => 'icon-favorite'
    },
    size: {
      type: [String, Number],
      default: () => 20
    }
  }

}
</script>

<style scoped lang="less">
.icon {
  width: 1em;
  height: 1em;
  vertical-align: -0.15em;
  fill: currentColor;
  overflow: hidden;
}

</style>
